#ifndef GRAPHIC_MAINWINDOW_H
#define GRAPHIC_MAINWINDOW_H

#include <QMainWindow>
#include "mygraphicview.h"
#include <QPushButton>
QT_BEGIN_NAMESPACE
namespace Ui { class GraphicMainWindow; }
QT_END_NAMESPACE

class GraphicMainWindow : public QMainWindow
{
    Q_OBJECT

public:
    GraphicMainWindow(QWidget *parent = nullptr);
    ~GraphicMainWindow();
protected:
    bool eventFilter(QObject *watched, QEvent *event) override;
    void mouseMoveEvent(QMouseEvent *event) override;
private:
    void initUi();
    MyGraphicView*  m_pmyGraphicView;
    QPushButton*    m_rectbutton;
    eSelectShape    m_eSelectShape;
    bool            m_bfirstAdd;
};
#endif // GRAPHIC_MAINWINDOW_H
